﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for CommentBUS
/// </summary>
public class CommentBUS
{
    CommentDAL comDAL = new CommentDAL();
	public CommentBUS()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public DataTable getAllComment() {
        return comDAL.getAllComment();
    }
    public DataTable getCommentById(int id)
    {
        return comDAL.getCommentById(id);
    }
    public DataTable getCommentByEmail(string mail)
    {
        return comDAL.getCommentByEmail(mail);
    }
    public bool insertComment(string mail, string title, string content) {
        return comDAL.insertComment(mail, title, content);
    }
    public bool delComment(int id) {
        return comDAL.delComment(id);
    }
}